0751a67e15947cb6a8252e7d680d71b29e090796,xwiki-platform-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/widget/rta/cmd/internal/InsertHRExecutable.java,InsertHRExecutable,execute,#RichTextArea#String#,43

Before Change


        Range range = selection.getRangeAt(0);

        // Leave the rest of the ranges intact.
        selection.removeAllRanges();

        // Delete the contents of the first range. The horizontal rule will be inserted in place of the deleted text.
        range.deleteContents();

After Change


            range.setEnd(startNextLevelSibling, 0);
        }
        range.collapse(false);
        selection.removeAllRanges();
        selection.addRange(range);

        return true;